<?php
require_once '../global.inc.php';
//SESSION中取出资料信息
$birthdayArray			= $_SESSION["birthdayArray"];
$currentActivityArray	= $_SESSION["currentActivityArray"];
$passActivityArray		= $_SESSION["passActivityArray"];
$scoreActivityArray		= $_SESSION["scoreActivityArray"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}

-->
</style>
</head>

<body>
<div align="center"><h3>欢迎登录乐徒会员管理系统</h3></div>
<table  width="80%" border="0" align="center" cellpadding="20" cellspacing="1" >
	<tr>
		<td valign="top">
			<table  width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#a8c7ce">
				<tr><td colspan="3" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE10">会员生日提醒</span></div></td></tr>
				<tr>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">会员姓名</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">会员生日</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">会员电话</span></div></td>
				</tr>
				<?php 
				if (empty($birthdayArray)) {
					echo "<tr><td colspan='3' bgcolor='#FFFFFF'><span class='STYLE10'>今天没有过生日的会员！</span></td></tr>";
				}else{
					foreach ($birthdayArray as $birthdayInfo) {
						$memberName		=$birthdayInfo['member_name'];
						$birthday		=$birthdayInfo['birthday'];
						$mobile			=$birthdayInfo['mobile'];
						echo "<tr>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$memberName</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$birthday</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$mobile</span></div></td>";
						echo "</tr>";
					}
				}
				?>
			</table>
		</td>
		<td valign="top">
			<table  width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#a8c7ce">
				<tr><td colspan='4' bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE10">近期活动提醒</span></div></td></tr>
				<tr>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">活动名称</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">出发日期</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">销售价格</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">活动领队</span></div></td>
				</tr>
				<?php 
				if (empty($currentActivityArray)) {
					echo "<tr><td colspan='4' bgcolor='#FFFFFF'><span class='STYLE10'>没有近期活动！</span></td></tr>";
				}else{
					foreach ($currentActivityArray as $currentActivityInfo) {
						$subject		=$currentActivityInfo['subject'];
						$travelDate		=$currentActivityInfo['travel_date'];
						$saleFee		=$currentActivityInfo['sale_fee'];
						$leader			=$currentActivityInfo['leader'];
						echo "<tr>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$subject</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$travelDate</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$saleFee</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$leader</span></div></td>";
						echo "</tr>";
					}
				}
				?>
			</table>
		</td>
	</tr>
	<tr>
		<td valign="top">
			<table  width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#a8c7ce">
				<tr><td colspan='4' bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE10">活动结束超期提醒</span></div></td></tr>
				<tr>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">活动名称</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">归来日期</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">销售价格</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">活动领队</span></div></td>
				</tr>
				<?php 
				if (empty($passActivityArray)) {
					echo "<tr><td colspan='4' bgcolor='#FFFFFF'><span class='STYLE10'>没有超期活动！</span></td></tr>";
				}else{
					foreach ($passActivityArray as $passActivityInfo) {
						$subject		=$passActivityInfo['subject'];
						$backDate		=$passActivityInfo['back_date'];
						$saleFee		=$passActivityInfo['sale_fee'];
						$leader			=$passActivityInfo['leader'];
						echo "<tr>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$subject</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$backDate</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$saleFee</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$leader</span></div></td>";
						echo "</tr>";
					}
				}
				?>
			</table>
		</td>
		<td valign="top">
			<table  width="100%" border="0" align="center"  cellpadding="3" cellspacing="1" bgcolor="#a8c7ce">
				<tr><td colspan='4' bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE10">积分结算提醒</span></div></td></tr>
				<tr>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">活动名称</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">出发日期</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">销售价格</span></div></td>
					<td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">活动领队</span></div></td>
				</tr>
				<?php 
				if (empty($scoreActivityArray)) {
					echo "<tr><td colspan='4' bgcolor='#FFFFFF'><span class='STYLE10'>没有需要做积分结算的活动！</span></td></tr>";
				}else{
					foreach ($scoreActivityArray as $scoreActivityInfo) {
						$subject		=$scoreActivityInfo['subject'];
						$travelDate		=$scoreActivityInfo['travel_date'];
						$saleFee		=$scoreActivityInfo['sale_fee'];
						$leader			=$scoreActivityInfo['leader'];
						echo "<tr>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$subject</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$travelDate</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$saleFee</span></div></td>";
						echo "<td bgcolor='#FFFFFF' class='STYLE6'><div align='center'><span class='STYLE10'>$leader</span></div></td>";
						echo "</tr>";
					}
				}
				?>
			</table>
		</td>
	</tr>
</table>
</body>
</html>
